package b1.mobile.blackberry.ui.component;

import java.util.Vector;

import net.rim.device.api.ui.component.table.TableModelAdapter;

public class KPITableModel extends TableModelAdapter {

	private Vector kpiItems;
	
	public KPITableModel() {
		kpiItems = new Vector();
	}
	
	public int getNumberOfColumns() {
		return 1;
	}

	public int getNumberOfRows() {
		return kpiItems.size();
	}

	protected boolean doAddRow(Object row){
        kpiItems.addElement(row);
        return true;
    }


    protected Object doGetRow(int index){
        return kpiItems.elementAt(index);
    }
 

    
}
